﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<HsTec.DigitalPlatform.Model.DTO.UserModel>" %>
<% using (Html.BeginForm("Add", "User", FormMethod.Post, new { id = "ediform" }))
   {%>
<table border="0">
    <tr>
        <td colspan="2">
            <p class="validateTips">
            </p>
        </td>
    </tr>
    <tr style="display: none;">
        <td>
            流水号:
        </td>
        <td>
            <%=Html.TextBoxFor(t => t.userid)%>
        </td>
    </tr>
    <tr>
        <td>
            账户名:
        </td>
        <td>
            <%=Html.TextBoxFor(t => t.username)%>
        </td>
    </tr>
    <tr>
        <td>
            用户名:
        </td>
        <td>
            <%=Html.TextBoxFor(t => t.useralias)%>
        </td>
    </tr>
    <tr style="display: none;">
        <td>
            密码:
        </td>
        <td>
            <%=Html.TextBoxFor(t => t.password)%>
        </td>
    </tr>
    <tr>
        <td>
            角色:
        </td>
        <td>
            <%=Html.TextBoxFor(t => t.roleid)%>
        </td>
    </tr>
    <tr>
        <td>
            部门:
        </td>
        <td>
            <%=Html.DropDownListFor(t=>t.deptid,Model.deptlist,"请选择...")%>
        </td>
    </tr>
    <tr style="display: none;">
        <td>
            创建人:
        </td>
        <td>
            <%=Html.TextBoxFor(t => t.creater)%>
        </td>
    </tr>
    <tr style="display: none;">
        <td>
            创建日期:
        </td>
        <td>
            <%=Html.TextBoxFor(t => t.createtime)%>
        </td>
    </tr>
    <tr style="display: none;">
        <td>
            最后登录日期:
        </td>
        <td>
            <%=Html.TextBoxFor(t => t.lastlogindate)%>
        </td>
    </tr>
    <tr style="display: none;">
        <td colspan="2">
            <input type="submit" id="btnSave" />
        </td>
    </tr>
</table>
<%} %>
